<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>formats.__dataset__</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Metadata Crawler</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="formats-module.html">Package&nbsp;formats</a> ::
        Module&nbsp;__dataset__
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="formats.__dataset__-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="formats.__dataset__-module.html">Module formats.__dataset__</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">Base Dataset class</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">==================</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">Defines the metadata fields and populates some basic info</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module utilities=utilities-module.html"><a title="utilities" class="py-name" href="#" onclick="return doclink('link-0', 'utilities', 'link-0');">utilities</a></tt><tt class="py-op">,</tt> <tt id="link-1" class="py-name" targets="Module uuid=uuid-module.html"><a title="uuid" class="py-name" href="#" onclick="return doclink('link-1', 'uuid', 'link-1');">uuid</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt><tt class="py-op">,</tt><tt id="link-2" class="py-name" targets="Variable uuid.UUID.time=uuid.UUID-class.html#time"><a title="uuid.UUID.time" class="py-name" href="#" onclick="return doclink('link-2', 'time', 'link-2');">time</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment">#Import fieldnames</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Module formats.__fields__=formats.__fields__-module.html"><a title="formats.__fields__" class="py-name" href="#" onclick="return doclink('link-3', '__fields__', 'link-3');">__fields__</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="Dataset"></a><div id="Dataset-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="Dataset-toggle" onclick="return toggle('Dataset');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="formats.__dataset__.Dataset-class.html">Dataset</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Dataset-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Dataset-expanded"><a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    <tt class="py-docstring">'''A base Dataset class'''</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">    <tt id="link-4" class="py-name" targets="Variable formats.__dataset__.Dataset._err=formats.__dataset__.Dataset-class.html#_err"><a title="formats.__dataset__.Dataset._err" class="py-name" href="#" onclick="return doclink('link-4', '_err', 'link-4');">_err</a></tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-string">'fields'</tt><tt class="py-op">,</tt><tt class="py-string">'metadata'</tt><tt class="py-op">)</tt> <tt class="py-comment">#These fields can't be deleted</tt> </tt>
<a name="Dataset.__setattr__"></a><div id="Dataset.__setattr__-def"><a name="L16"></a><tt class="py-lineno"> 16</tt> <a class="py-toggle" href="#" id="Dataset.__setattr__-toggle" onclick="return toggle('Dataset.__setattr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__.Dataset-class.html#__setattr__">__setattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Dataset.__setattr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Dataset.__setattr__-expanded"><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">        <tt class="py-comment">#Stop the fields and metadata attributes from being changed</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">name</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="formats.__dataset__.Dataset._err" class="py-name" href="#" onclick="return doclink('link-5', '_err', 'link-4');">_err</a></tt><tt class="py-op">:</tt><tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Can't modify field names"</tt><tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">name</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
</div><a name="Dataset.__delattr__"></a><div id="Dataset.__delattr__-def"><a name="L20"></a><tt class="py-lineno"> 20</tt> <a class="py-toggle" href="#" id="Dataset.__delattr__-toggle" onclick="return toggle('Dataset.__delattr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__.Dataset-class.html#__delattr__">__delattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Dataset.__delattr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Dataset.__delattr__-expanded"><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-comment">#Stop the fields and metadata attributes from being deleted</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">name</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="formats.__dataset__.Dataset._err" class="py-name" href="#" onclick="return doclink('link-6', '_err', 'link-4');">_err</a></tt><tt class="py-op">:</tt><tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Can't delete %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">name</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">name</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
</div><a name="Dataset.__new__"></a><div id="Dataset.__new__-def"><a name="L24"></a><tt class="py-lineno"> 24</tt> <a class="py-toggle" href="#" id="Dataset.__new__-toggle" onclick="return toggle('Dataset.__new__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__.Dataset-class.html#__new__">__new__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">f</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Dataset.__new__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Dataset.__new__-expanded"><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">        <tt class="py-comment">#Initialise the object</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">=</tt><tt class="py-name">object</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Static Method formats.__dataset__.Dataset.__new__()=formats.__dataset__.Dataset-class.html#__new__"><a title="formats.__dataset__.Dataset.__new__" class="py-name" href="#" onclick="return doclink('link-7', '__new__', 'link-7');">__new__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-comment">#Initialise the metadata</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">metadata</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">field</tt> <tt class="py-keyword">in</tt> <tt id="link-8" class="py-name"><a title="formats.__fields__" class="py-name" href="#" onclick="return doclink('link-8', '__fields__', 'link-3');">__fields__</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Variable formats.__fields__.fields=formats.__fields__-module.html#fields,Variable formats.fields=formats-module.html#fields,Variable uuid.UUID.fields=uuid.UUID-class.html#fields"><a title="formats.__fields__.fields
formats.fields
uuid.UUID.fields" class="py-name" href="#" onclick="return doclink('link-9', 'fields', 'link-9');">fields</a></tt><tt class="py-op">:</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-name">field</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-name">metadata</tt><tt class="py-op">=</tt><tt id="link-10" class="py-name" targets="Class formats.__dataset__._idict=formats.__dataset__._idict-class.html"><a title="formats.__dataset__._idict" class="py-name" href="#" onclick="return doclink('link-10', '_idict', 'link-10');">_idict</a></tt><tt class="py-op">(</tt><tt class="py-name">metadata</tt><tt class="py-op">)</tt> <tt class="py-comment">#We don't want any fields added/deleted</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-11" class="py-name" targets="Class formats.__dataset__.Dataset=formats.__dataset__.Dataset-class.html,Class formats.__default__.Dataset=formats.__default__.Dataset-class.html,Class formats.ali_hyperion.Dataset=formats.ali_hyperion.Dataset-class.html,Class formats.alos.Dataset=formats.alos.Dataset-class.html,Class formats.aster.Dataset=formats.aster.Dataset-class.html,Class formats.ccrs.Dataset=formats.ccrs.Dataset-class.html,Class formats.ecw.Dataset=formats.ecw.Dataset-class.html,Class formats.envi.Dataset=formats.envi.Dataset-class.html,Class formats.esribil.Dataset=formats.esribil.Dataset-class.html,Class formats.esrigrid.Dataset=formats.esrigrid.Dataset-class.html,Class formats.fast_l7a.Dataset=formats.fast_l7a.Dataset-class.html,Class formats.jp2.Dataset=formats.jp2.Dataset-class.html,Class formats.quickbird.Dataset=formats.quickbird.Dataset-class.html,Class formats.spot_dimap.Dataset=formats.spot_dimap.Dataset-class.html"><a title="formats.__dataset__.Dataset
formats.__default__.Dataset
formats.ali_hyperion.Dataset
formats.alos.Dataset
formats.aster.Dataset
formats.ccrs.Dataset
formats.ecw.Dataset
formats.envi.Dataset
formats.esribil.Dataset
formats.esrigrid.Dataset
formats.fast_l7a.Dataset
formats.jp2.Dataset
formats.quickbird.Dataset
formats.spot_dimap.Dataset" class="py-name" href="#" onclick="return doclink('link-11', 'Dataset', 'link-11');">Dataset</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method formats.__dataset__.Dataset.__setattr__()=formats.__dataset__.Dataset-class.html#__setattr__,Method uuid.UUID.__setattr__()=uuid.UUID-class.html#__setattr__"><a title="formats.__dataset__.Dataset.__setattr__
uuid.UUID.__setattr__" class="py-name" href="#" onclick="return doclink('link-12', '__setattr__', 'link-12');">__setattr__</a></tt><tt class="py-op">(</tt><tt class="py-string">'fields'</tt><tt class="py-op">,</tt> <tt id="link-13" class="py-name"><a title="formats.__fields__" class="py-name" href="#" onclick="return doclink('link-13', '__fields__', 'link-3');">__fields__</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="formats.__fields__.fields
formats.fields
uuid.UUID.fields" class="py-name" href="#" onclick="return doclink('link-14', 'fields', 'link-9');">fields</a></tt><tt class="py-op">)</tt> <tt class="py-comment">#required to avoid errors by</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-15" class="py-name"><a title="formats.__dataset__.Dataset
formats.__default__.Dataset
formats.ali_hyperion.Dataset
formats.alos.Dataset
formats.aster.Dataset
formats.ccrs.Dataset
formats.ecw.Dataset
formats.envi.Dataset
formats.esribil.Dataset
formats.esrigrid.Dataset
formats.fast_l7a.Dataset
formats.jp2.Dataset
formats.quickbird.Dataset
formats.spot_dimap.Dataset" class="py-name" href="#" onclick="return doclink('link-15', 'Dataset', 'link-11');">Dataset</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="formats.__dataset__.Dataset.__setattr__
uuid.UUID.__setattr__" class="py-name" href="#" onclick="return doclink('link-16', '__setattr__', 'link-12');">__setattr__</a></tt><tt class="py-op">(</tt><tt class="py-string">'metadata'</tt><tt class="py-op">,</tt> <tt class="py-name">metadata</tt><tt class="py-op">)</tt>        <tt class="py-comment">#bypassing local __setattr__</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-comment">#Populate some basic fields</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'filename'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">basename</tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'filepath'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">f</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'metadatadate'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt id="link-17" class="py-name"><a title="uuid.UUID.time" class="py-name" href="#" onclick="return doclink('link-17', 'time', 'link-2');">time</a></tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">'%Y-%m-%d'</tt><tt class="py-op">,</tt><tt id="link-18" class="py-name"><a title="uuid.UUID.time" class="py-name" href="#" onclick="return doclink('link-18', 'time', 'link-2');">time</a></tt><tt class="py-op">.</tt><tt class="py-name">localtime</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-name">fileinfo</tt><tt class="py-op">=</tt><tt id="link-19" class="py-name"><a title="utilities" class="py-name" href="#" onclick="return doclink('link-19', 'utilities', 'link-0');">utilities</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Function utilities.FileInfo()=utilities-module.html#FileInfo"><a title="utilities.FileInfo" class="py-name" href="#" onclick="return doclink('link-20', 'FileInfo', 'link-20');">FileInfo</a></tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'ownerid'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">fileinfo</tt><tt class="py-op">[</tt><tt class="py-string">'OWNERID'</tt><tt class="py-op">]</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'ownername'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">fileinfo</tt><tt class="py-op">[</tt><tt class="py-string">'OWNERNAME'</tt><tt class="py-op">]</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'datecreated'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">fileinfo</tt><tt class="py-op">[</tt><tt class="py-string">'DATE_CREATED'</tt><tt class="py-op">]</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">metadata</tt><tt class="py-op">[</tt><tt class="py-string">'guid'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="uuid" class="py-name" href="#" onclick="return doclink('link-21', 'uuid', 'link-1');">uuid</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Function uuid.uuid4()=uuid-module.html#uuid4"><a title="uuid.uuid4" class="py-name" href="#" onclick="return doclink('link-22', 'uuid4', 'link-22');">uuid4</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">         </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="Dataset.__init__"></a><div id="Dataset.__init__-def"><a name="L46"></a><tt class="py-lineno"> 46</tt> <a class="py-toggle" href="#" id="Dataset.__init__-toggle" onclick="return toggle('Dataset.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__.Dataset-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt><tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Dataset.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Dataset.__init__-expanded"><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> <tt class="py-comment">#just in case a subclass tries to call this method</tt> </tt>
</div></div><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"> </tt>
<a name="_idict"></a><div id="_idict-def"><a name="L49"></a><tt class="py-lineno"> 49</tt> <a class="py-toggle" href="#" id="_idict-toggle" onclick="return toggle('_idict');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html">_idict</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_idict-expanded"><a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt class="py-docstring">'''The idict class. An immutable dictionary.</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt class="py-docstring">       http://code.activestate.com/recipes/498072/</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt>
<a name="_idict.__init__"></a><div id="_idict.__init__-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="_idict.__init__-toggle" onclick="return toggle('_idict.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">dict</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__init__-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dict</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Method progresslogger.ProgressBarView.update()=progresslogger.ProgressBarView-class.html#update"><a title="progresslogger.ProgressBarView.update" class="py-name" href="#" onclick="return doclink('link-23', 'update', 'link-23');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">dict</tt><tt class="py-op">)</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">kwds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="progresslogger.ProgressBarView.update" class="py-name" href="#" onclick="return doclink('link-24', 'update', 'link-23');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">kwds</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="_idict.__iter__"></a><div id="_idict.__iter__-def"><a name="L60"></a><tt class="py-lineno"> 60</tt> <a class="py-toggle" href="#" id="_idict.__iter__-toggle" onclick="return toggle('_idict.__iter__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__iter__">__iter__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__iter__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__iter__-expanded"><a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method formats.__dataset__._idict.keys()=formats.__dataset__._idict-class.html#keys"><a title="formats.__dataset__._idict.keys" class="py-name" href="#" onclick="return doclink('link-25', 'keys', 'link-25');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt><tt class="py-keyword">yield</tt> <tt class="py-name">key</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">     </tt>
<a name="_idict.__repr__"></a><div id="_idict.__repr__-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="_idict.__repr__-toggle" onclick="return toggle('_idict.__repr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__repr__-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">     </tt>
<a name="_idict.__cmp__"></a><div id="_idict.__cmp__-def"><a name="L66"></a><tt class="py-lineno"> 66</tt> <a class="py-toggle" href="#" id="_idict.__cmp__-toggle" onclick="return toggle('_idict.__cmp__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__cmp__">__cmp__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__cmp__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__cmp__-expanded"><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">dict</tt><tt class="py-op">,</tt> <tt class="py-name">tuct</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">cmp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">,</tt> <tt class="py-name">dict</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">cmp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">,</tt> <tt class="py-name">dict</tt><tt class="py-op">)</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">     </tt>
<a name="_idict.__len__"></a><div id="_idict.__len__-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="_idict.__len__-toggle" onclick="return toggle('_idict.__len__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__len__">__len__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__len__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__len__-expanded"><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">     </tt>
<a name="_idict.__getitem__"></a><div id="_idict.__getitem__-def"><a name="L75"></a><tt class="py-lineno"> 75</tt> <a class="py-toggle" href="#" id="_idict.__getitem__-toggle" onclick="return toggle('_idict.__getitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__getitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__getitem__-expanded"><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"> </tt>
<a name="_idict.__setitem__"></a><div id="_idict.__setitem__-def"><a name="L78"></a><tt class="py-lineno"> 78</tt> <a class="py-toggle" href="#" id="_idict.__setitem__-toggle" onclick="return toggle('_idict.__setitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__setitem__-expanded"><a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="formats.__dataset__._idict.keys" class="py-name" href="#" onclick="return doclink('link-26', 'keys', 'link-25');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">val</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt><tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Can't add fields"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"> </tt>
<a name="_idict.__delitem__"></a><div id="_idict.__delitem__-def"><a name="L83"></a><tt class="py-lineno"> 83</tt> <a class="py-toggle" href="#" id="_idict.__delitem__-toggle" onclick="return toggle('_idict.__delitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__delitem__">__delitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__delitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__delitem__-expanded"><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Can't delete fields"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"> </tt>
<a name="_idict.copy"></a><div id="_idict.copy-def"><a name="L86"></a><tt class="py-lineno"> 86</tt> <a class="py-toggle" href="#" id="_idict.copy-toggle" onclick="return toggle('_idict.copy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#copy">copy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.copy-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.copy-expanded"><a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt> <tt class="py-keyword">is</tt> <tt class="py-name">tuct</tt><tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">tuct</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method formats.__dataset__._idict.copy()=formats.__dataset__._idict-class.html#copy"><a title="formats.__dataset__._idict.copy" class="py-name" href="#" onclick="return doclink('link-27', 'copy', 'link-27');">copy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt id="link-28" class="py-name"><a title="formats.__dataset__._idict.copy" class="py-name" href="#" onclick="return doclink('link-28', 'copy', 'link-27');">copy</a></tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-name">__data</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt class="py-name">c</tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="formats.__dataset__._idict.copy" class="py-name" href="#" onclick="return doclink('link-29', 'copy', 'link-27');">copy</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="formats.__dataset__._idict.copy" class="py-name" href="#" onclick="return doclink('link-30', 'copy', 'link-27');">copy</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt> <tt class="py-op">=</tt> <tt class="py-name">__data</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">c</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="progresslogger.ProgressBarView.update" class="py-name" href="#" onclick="return doclink('link-31', 'update', 'link-23');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">c</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"> </tt>
<a name="_idict.pop"></a><div id="_idict.pop-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="_idict.pop-toggle" onclick="return toggle('_idict.pop');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#pop">pop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.pop-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.pop-expanded"><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Method formats.__dataset__._idict.pop()=formats.__dataset__._idict-class.html#pop"><a title="formats.__dataset__._idict.pop" class="py-name" href="#" onclick="return doclink('link-32', 'pop', 'link-32');">pop</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">     </tt>
<a name="_idict.keys"></a><div id="_idict.keys-def"><a name="L102"></a><tt class="py-lineno">102</tt> <a class="py-toggle" href="#" id="_idict.keys-toggle" onclick="return toggle('_idict.keys');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#keys">keys</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.keys-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.keys-expanded"><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="formats.__dataset__._idict.keys" class="py-name" href="#" onclick="return doclink('link-33', 'keys', 'link-25');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">     </tt>
<a name="_idict.items"></a><div id="_idict.items-def"><a name="L105"></a><tt class="py-lineno">105</tt> <a class="py-toggle" href="#" id="_idict.items-toggle" onclick="return toggle('_idict.items');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#items">items</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.items-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.items-expanded"><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Method formats.__dataset__._idict.items()=formats.__dataset__._idict-class.html#items"><a title="formats.__dataset__._idict.items" class="py-name" href="#" onclick="return doclink('link-34', 'items', 'link-34');">items</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">         </tt>
<a name="_idict.iteritems"></a><div id="_idict.iteritems-def"><a name="L108"></a><tt class="py-lineno">108</tt> <a class="py-toggle" href="#" id="_idict.iteritems-toggle" onclick="return toggle('_idict.iteritems');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#iteritems">iteritems</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.iteritems-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.iteritems-expanded"><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name" targets="Method formats.__dataset__._idict.iteritems()=formats.__dataset__._idict-class.html#iteritems"><a title="formats.__dataset__._idict.iteritems" class="py-name" href="#" onclick="return doclink('link-35', 'iteritems', 'link-35');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">         </tt>
<a name="_idict.iterkeys"></a><div id="_idict.iterkeys-def"><a name="L111"></a><tt class="py-lineno">111</tt> <a class="py-toggle" href="#" id="_idict.iterkeys-toggle" onclick="return toggle('_idict.iterkeys');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#iterkeys">iterkeys</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.iterkeys-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.iterkeys-expanded"><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method formats.__dataset__._idict.iterkeys()=formats.__dataset__._idict-class.html#iterkeys"><a title="formats.__dataset__._idict.iterkeys" class="py-name" href="#" onclick="return doclink('link-36', 'iterkeys', 'link-36');">iterkeys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">     </tt>
<a name="_idict.itervalues"></a><div id="_idict.itervalues-def"><a name="L114"></a><tt class="py-lineno">114</tt> <a class="py-toggle" href="#" id="_idict.itervalues-toggle" onclick="return toggle('_idict.itervalues');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#itervalues">itervalues</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.itervalues-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.itervalues-expanded"><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name" targets="Method formats.__dataset__._idict.itervalues()=formats.__dataset__._idict-class.html#itervalues"><a title="formats.__dataset__._idict.itervalues" class="py-name" href="#" onclick="return doclink('link-37', 'itervalues', 'link-37');">itervalues</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">     </tt>
<a name="_idict.values"></a><div id="_idict.values-def"><a name="L117"></a><tt class="py-lineno">117</tt> <a class="py-toggle" href="#" id="_idict.values-toggle" onclick="return toggle('_idict.values');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#values">values</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.values-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.values-expanded"><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method formats.__dataset__._idict.values()=formats.__dataset__._idict-class.html#values"><a title="formats.__dataset__._idict.values" class="py-name" href="#" onclick="return doclink('link-38', 'values', 'link-38');">values</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">         </tt>
<a name="_idict.has_key"></a><div id="_idict.has_key-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="_idict.has_key-toggle" onclick="return toggle('_idict.has_key');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#has_key">has_key</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.has_key-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.has_key-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method formats.__dataset__._idict.has_key()=formats.__dataset__._idict-class.html#has_key"><a title="formats.__dataset__._idict.has_key" class="py-name" href="#" onclick="return doclink('link-39', 'has_key', 'link-39');">has_key</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">     </tt>
<a name="_idict.get"></a><div id="_idict.get-def"><a name="L123"></a><tt class="py-lineno">123</tt> <a class="py-toggle" href="#" id="_idict.get-toggle" onclick="return toggle('_idict.get');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">,</tt> <tt class="py-param">failobj</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.get-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.get-expanded"><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="formats.__dataset__._idict.has_key" class="py-name" href="#" onclick="return doclink('link-40', 'has_key', 'link-39');">has_key</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">failobj</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">         </tt>
<a name="_idict.__contains__"></a><div id="_idict.__contains__-def"><a name="L128"></a><tt class="py-lineno">128</tt> <a class="py-toggle" href="#" id="_idict.__contains__-toggle" onclick="return toggle('_idict.__contains__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#__contains__">__contains__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.__contains__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.__contains__-expanded"><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__data</tt> </tt>
</div><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"> </tt>
<a name="_idict.fromkeys"></a><div id="_idict.fromkeys-def"><a name="L131"></a><tt class="py-lineno">131</tt> <a class="py-toggle" href="#" id="_idict.fromkeys-toggle" onclick="return toggle('_idict.fromkeys');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="formats.__dataset__._idict-class.html#fromkeys">fromkeys</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">iterable</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_idict.fromkeys-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_idict.fromkeys-expanded"><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">d</tt> <tt class="py-op">=</tt> <tt class="py-name">cls</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">iterable</tt><tt class="py-op">:</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">            <tt class="py-name">d</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">d</tt> </tt>
</div></div><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Metadata Crawler</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Aug 12 09:47:13 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
